package managedbean.SCM.Batch;

import entity.SCM.Batch;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import session.stateless.SCM.BatchBeanLocal;

@ManagedBean(name="viewProductBatchManagerBean")
@ViewScoped
public class ViewProductBatchManagerBean implements Serializable {

    public ViewProductBatchManagerBean() {
    }
    
    @EJB
    private BatchBeanLocal batchBeanLocal;
    
    private Batch selectedProductBatch;

    public Batch getSelectedProductBatch() {
        return selectedProductBatch;
    }

    public void setSelectedProductBatch(Batch selectedProductBatch) {
        this.selectedProductBatch = selectedProductBatch;
    }

    public List<Batch> getProductBatch(){
        return batchBeanLocal.getProductBatch();
    }
    
}
